package com.bdmc.report.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.common.annotation.ExcelDictFormat;
import com.bdmc.common.convert.ExcelDictConvert;
import com.bdmc.common.convert.LocalDateTimeConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

;

/**
 * 车辆点火熄火视图对象 report_car_acc
 *
 * @author bdmc
 * @date 2022-08-08
 */
@Data
@ExcelIgnoreUnannotated
public class ReportCarAccVo {

	private static final long serialVersionUID = 1L;

	/**
	 * 部门名称
	 */
	@ExcelProperty(value = "所属部门")
	private String deptName;

    /**
     * 主键
     */
	
	private Long accId;

    /**
     * 人员id
     */
	private Long personId;

    /**
     * 人员名称
     */
	@ExcelProperty(value = "人员名称")
	private String personName;

    /**
     * 车辆id
     */
	private Long carId;

    /**
     * 车牌号
     */
	@ExcelProperty(value = "车牌号")
	private String carNum;

    /**
     * 围栏id
     */
	private Long fenceId;

    /**
     * 围栏名称
     */
	@ExcelProperty(value = "围栏名称")
	private String fenceName;

    /**
     * 数据时间
     */
	@ExcelProperty(value = "数据时间",converter = LocalDateTimeConverter.class)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime dataTime;

    /**
     * acc状态，on/off
     */
	@ExcelProperty(value = "acc状态",converter = ExcelDictConvert.class)
	@ExcelDictFormat(dictType = "report_acc_status")
	private String accStatus;



}
